package com.ruoyi.system.service.car4s_service.car4s_impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.car4s_mapper.Car4sCustomerPointsDetailMapper;
import com.ruoyi.system.domain.car4s_domain.Car4sCustomerPointsDetail;
import com.ruoyi.system.service.car4s_service.ICar4sCustomerPointsDetailService;

/**
 * 客户积分明细Service业务层处理
 * 
 * @author LK
 * @date 2024-06-29
 */
@Service
public class Car4sCustomerPointsDetailServiceImpl implements ICar4sCustomerPointsDetailService 
{
    @Autowired
    private Car4sCustomerPointsDetailMapper car4sCustomerPointsDetailMapper;

    /**
     * 查询客户积分明细
     * 
     * @param pointsId 客户积分明细主键
     * @return 客户积分明细
     */
    @Override
    public Car4sCustomerPointsDetail selectCar4sCustomerPointsDetailByPointsId(Long pointsId)
    {
        return car4sCustomerPointsDetailMapper.selectCar4sCustomerPointsDetailByPointsId(pointsId);
    }

    /**
     * 查询客户积分明细列表
     * 
     * @param car4sCustomerPointsDetail 客户积分明细
     * @return 客户积分明细
     */
    @Override
    public List<Car4sCustomerPointsDetail> selectCar4sCustomerPointsDetailList(Car4sCustomerPointsDetail car4sCustomerPointsDetail)
    {
        return car4sCustomerPointsDetailMapper.selectCar4sCustomerPointsDetailList(car4sCustomerPointsDetail);
    }

    /**
     * 新增客户积分明细
     * 
     * @param car4sCustomerPointsDetail 客户积分明细
     * @return 结果
     */
    @Override
    public int insertCar4sCustomerPointsDetail(Car4sCustomerPointsDetail car4sCustomerPointsDetail)
    {
        return car4sCustomerPointsDetailMapper.insertCar4sCustomerPointsDetail(car4sCustomerPointsDetail);
    }

    /**
     * 修改客户积分明细
     * 
     * @param car4sCustomerPointsDetail 客户积分明细
     * @return 结果
     */
    @Override
    public int updateCar4sCustomerPointsDetail(Car4sCustomerPointsDetail car4sCustomerPointsDetail)
    {
        return car4sCustomerPointsDetailMapper.updateCar4sCustomerPointsDetail(car4sCustomerPointsDetail);
    }

    /**
     * 批量删除客户积分明细
     * 
     * @param pointsIds 需要删除的客户积分明细主键
     * @return 结果
     */
    @Override
    public int deleteCar4sCustomerPointsDetailByPointsIds(Long[] pointsIds)
    {
        return car4sCustomerPointsDetailMapper.deleteCar4sCustomerPointsDetailByPointsIds(pointsIds);
    }

    /**
     * 删除客户积分明细信息
     * 
     * @param pointsId 客户积分明细主键
     * @return 结果
     */
    @Override
    public int deleteCar4sCustomerPointsDetailByPointsId(Long pointsId)
    {
        return car4sCustomerPointsDetailMapper.deleteCar4sCustomerPointsDetailByPointsId(pointsId);
    }
}
